package com.loanapp.server.market.api.home.hystrix;

import com.loanapp.server.market.api.home.api.MainIndexApi;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class MainIndexApiFallbackFactory implements FallbackFactory<MainIndexApi> {
    public MainIndexApi create(Throwable throwable) {
        return new MainIndexApi() {
            public List<Map<String, Object>> getBannar(String channelId) {
                return null;
            }

            public List<Map<String, Object>> getStarProduct(String productType) {
                return null;
            }

            public List<Map<String, Object>> getBorrowRecord() {
                return null;
            }

            public List<Map<String, Object>> getIndexNews(String cmsChannel) {
                return null;
            }

            public List<Map<String, Object>> getActivity(String cmsChannel) {
                return null;
            }

            public Map<String, Object> getCmsDesc(String cmsId) {
                return null;
            }

            public Map<String, Object> findAppDetail(String versionId, String storeNameChannel) {
                return null;
            }

            public List<Map<String, Object>> getHelpCenter(String channelId) {
                return null;
            }
        };
    }
}
